@echo off

set z=rbtree.zip
set out=rbtree.out

rm -rf %out%
rm -rf %z%

set GOOS=linux

set GOTRACEBACK=crash

go build -o %out% .

if exist %out% (
    echo=
    echo=
    echo=
    echo ***** build %out% ok *****

    zip -qr %z% %out%
) else (
    echo=
    echo @@@@@ build %out% error @@@@@
    echo=
)
